package cn.tedu.charging.order.mqtt;

import cn.tedu.charging.order.feign.CostClient;
import cn.tedu.charging.order.repository.ProcessEsRepository;
import cn.tedu.charging.order.service.ConsumerService;
import cn.tedu.charging.order.websocket.WebSocketServer;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

@Component
@Slf4j
@Getter
public class MqttContext {

    @Autowired
    private ConsumerService consumerService;

    @Autowired
    private RedisTemplate redisTemplate;

    /**
     * websocket服务 用来给用户推送消息
     */
    @Autowired
    private WebSocketServer webSocketServer;

    @Autowired
    private CostClient costClient;

    @Autowired
    private ProcessEsRepository processEsRepository;
}
